
import 'package:json_annotation/json_annotation.dart';

part 'salesman.g.dart';

@JsonSerializable()
class Salesman {
  int? userId;
  String? userName;
  String? userPhone;
  int? followTimes;
  bool isSelected;

  Salesman({
    this.userId,
    this.userName,
    this.userPhone,
    this.followTimes,
    this.isSelected = false
  });

  factory Salesman.fromJson(Map<String, dynamic> json) => _$SalesmanFromJson(json);

  Map<String,dynamic> toJson() => _$SalesmanToJson(this);
}
